<script>

	export default {
		globalData:{
			config : '',
		},
		
		onLaunch: function() {
			const _this = this
			console.log('App Launch')
			const systemInfo = uni.getSystemInfoSync()
			uni.setStorageSync("systemInfo",systemInfo)
			
			if (systemInfo.pixelRatio > 1) {
				//不推荐直接根据反馈的来，为了性能考虑，最好固定2
				this.$options.globalData.pixelRatio = 2;
			}

			//获取全局配置
			this.$store.dispatch('setConfigAsync').then((res) => {
				console.log('config',res)
			})
			
			this.util.getUserInfo((res)=>{
				console.log('userInfo',res)
			})

		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		
	}
</script>

<style lang="scss">


  @font-face {
    font-family: 'iconfont';  /* Project id 1635447 */
    src: url('//at.alicdn.com/t/font_1635447_usw8jruffr.woff2?t=1624599036816') format('woff2'),
         url('//at.alicdn.com/t/font_1635447_usw8jruffr.woff?t=1624599036816') format('woff'),
         url('//at.alicdn.com/t/font_1635447_usw8jruffr.ttf?t=1624599036816') format('truetype');
  }
	.iconfont{
	    font-family:"iconfont" !important;
	    font-size:16px;font-style:normal;
	    -webkit-font-smoothing: antialiased;
	    -webkit-text-stroke-width: 0.2px;
	    -moz-osx-font-smoothing: grayscale;
	}
	/*每个页面公共css */
	.main-section {
		-webkit-box-flex: 1;
		-webkit-flex: 1;
		flex: 1;
		height: 100%;
		height: calc(100% -(constant(safe-area-inset-bottom)));
		height: calc(100% - (env(safe-area-inset-bottom)));
		overflow-y: auto;
    }
	.main-section.top {
		padding-top: 0;
	}
	// #ifdef H5
	.main-section.top {
		padding-top: 86rpx;
	}
	// #endif
	.main-section.tabbar-bottom {
		padding-bottom: 110rpx;
	}
	.hide-bottom {
		padding-bottom: 0;
		padding-bottom: calc(0 + constant(safe-area-inset-bottom));
		padding-bottom: calc(0 + env(safe-area-inset-bottom));
	}
	.text-ellipsis {
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		display: -webkit-box !important;
		-webkit-line-clamp: 1;//文字上限行
		-webkit-box-orient: vertical;
	}
	.text-ellipsis-2 {
	    display: -webkit-box;
	    overflow: hidden;
	
	    white-space: normal !important;
	    text-overflow: ellipsis;
	    word-wrap: break-word;
	
	    -webkit-line-clamp: 2;
	    -webkit-box-orient: vertical;
	}
	.hidden {
		display: none;
	}
	.show {
		display: block;
	}
	[v-cloak]{
	    display: none;
	}
	image {
		will-change: transform
	}
	
	rich-text {
		
			line-height: 44rpx;
			font-size: 28rpx;
		
	}
</style>
